var express = require('express')

var {expressjwt} = require('express-jwt')

var lister = express()

lister.use(express.static('static'))

lister.use( express.json() );
lister.use( express.urlencoded({extended:false}) );

lister.use(expressjwt({
    secret: '111',
    algorithms: ['HS256']
}).unless({path:['/user/zhuce' , '/user/enroll']}))

var user = require('./return/user.js')
lister.use( '/user' , user )

lister.listen(8888,()=>{
    console.log('1111');
})